<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <head>
 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
 <meta http-equiv="content-style-type" content="text/css"/>
 <title></title>
 <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
 <script type="text/javascript">
var waiting = 'waiting ...';
function callClient() {
  setTimeout(
    $.get('/connect', function(data) {
      document.location.href = 'http://localhost.:8383/html/main.html';
    }),
    300);
}
$(document).ready(function() {
  $('#waiting').ajaxError(function() {
    $(this).text(waiting);
    waiting = (waiting == '') ? 'waiting ...' : '';
    callClient();
  });
  callClient();
});
 </script>
</head>
<body>
<div id="waiting"></div>
</body> </html>
